package  com.tongji.housediy.events.commonEvent
{
	import com.tongji.housediy.view.components.AbstractBorderChild;
	import com.tongji.housediy.view.components.AbstractDrawingRoom;
	import com.tongji.housediy.view.components.RoomShape;
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */
	public class RelatedRoomAdminEvent extends Event
	{	
		public static const UPDATE_RELATED_ROOM:String = "updateRelatedRoom";
		
		public var dragedRoom:AbstractDrawingRoom;
		public var oppositedRoomVector:Vector.<AbstractDrawingRoom>;
		
		public function RelatedRoomAdminEvent(type:String, dragedRoom:AbstractDrawingRoom, oppositedRoomVector:Vector.<AbstractDrawingRoom> = null)
		{
			super(type, true);
			this.dragedRoom = dragedRoom;
			this.oppositedRoomVector = oppositedRoomVector;
		}
		
		override public function clone():Event
		{
			return new RelatedRoomAdminEvent(type, dragedRoom, oppositedRoomVector);
		}
	}
}